import {getCartList} from "@/network/shopcart";

const actions = {
    updateCartCount(context:any){
        getCartList().then((res) =>{
            context.commit('setCartCount', res.data.length || 0);
        })
    }
}
export {actions}